package com.example.data;

import java.util.ArrayList;

public class DataManager {
	private ArrayList<DataInfoItem> dataitemlist = new ArrayList<DataInfoItem>();
	private static DataManager instance = null;
	private DataManager(){}
	public static DataManager getInstance(){
		if(instance == null){
			instance = new DataManager();
		}
		return instance;
	}
	public void addDataInfoItem(DataInfoItem item){
		dataitemlist.add(item);
	}
	public int getDataItemNum(){
		return dataitemlist.size();
	}

	public DataInfoItem getDataItem(int index) {
		return dataitemlist.get(index);
	}
}
